package com.csii.user.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description TODO
 * @Date 2021/4/9 14:25
 * @Created by Ian
 * @Contact: 19107614@qq.com
 */
@Data
public class UpdateUserModel {
    @ApiModelProperty(value = "真实姓名")
    private String realname ;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "性别")
    private Integer sex;
    @ApiModelProperty(value = "电话")
    private String phone  ;
    @ApiModelProperty(value = "邮箱")
    private String email ;
    @ApiModelProperty(value = "生日")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday ;
}
